It is needed by the corresponding item in the window menu.
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6967
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2928>
* @param {number} cursor.y - The cursor y coordinate.
* @param {number} cursor.scale - The cursor texture scale.
*/
-async function captureScreenshot(texture, geometry, scale, cursor) {
+export async function captureScreenshot(texture, geometry, scale, cursor) {
const stream = Gio.MemoryOutputStream.new_resizable();
const [x, y, w, h] = geometry ?? [0, 0, -1, -1];
if (cursor === null)